package com.example.demo.mapper;

import com.example.demo.po.Material;
import com.example.demo.po.dto.MaterialAppealParam;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface MaterialMap {

    void SaveMaterial(Material material);

    void DeleteMaterial(int id);

    void UpdateMaterial(Material material);

    Material GetMaterialById(int id);

    List<Material> GetMaterials(int type);

    List<Material> GetMaterialsByName(String name);
    List<Material> GetAllMaterials();



    void DeleteNumber(MaterialAppealParam number);
    void AddNumber(MaterialAppealParam number);

}
